How To Capture Window In Automation